using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPCoco.Tasks
{
    public class Frame : InstantTask<ITextured>
    {
        public Frame(TextureFrame frame)
        {
            textureFrame = frame;
        }

        TextureFrame textureFrame;

        public TextureFrame TextureFrame
        {
            get { return textureFrame; }
            set { textureFrame = value; }
        }

        public override void InitializeWithTarget(ITextured target)
        {

        }

        public override void UpdateWithTarget(ITextured target, float time)
        {
            target.SetTextureFrame(textureFrame);
        }

        public override Task Clone()
        {
            return new Frame(textureFrame);
        }
    }
}
